#include <iostream>
#include "colleage.h"
#include "mediator.h"

int main()
{
    Mediator *m = new ConcreteMediator();
    Colleage *a = new ColleageA(m);
    Colleage *b = new ColleageB(m);

    m->SetColleage(a, b);

    a->Action("Hi!");
    b->Action("Hello.");

    delete a;
    delete b;
    delete m;
    return 0;
}

